package com.geek.novel.vo

/**
 * 分页对象
 * @author Hydra
 */
open class Pager<T: Any> {
    open var size = 0

    open var total: Long = 0

    open var totalPages = 0

    open var pageNo = 0

    open var records: List<T>? = null

    companion object{
        fun of(pageNo: Int, size: Int): Pager<Any>{
            val pager = Pager<Any>()
            pager.pageNo = pageNo
            pager.size = size
            return pager
        }
    }
}
